Module-level declarations

Types

Link copied to clipboard
Link copied to clipboard
entity goal
Link copied to clipboard
Link copied to clipboard
struct goal_info
Link copied to clipboard
Link copied to clipboard
entity quest
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
struct quest_info
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function check_interface_assets(goal: goal, account: account)
Link copied to clipboard
function check_previous_goals_completed(quest: quest, target_goal: goal, player: player)
Link copied to clipboard
Link copied to clipboard
function check_required_pre_quests(quest: quest, player: player)
Link copied to clipboard
function create_quest(name: text, quest_id: text, provider_id: text, required_quests: list<text>, original_rewards: list<original_asset_reward_info>, ft3_rewards: list<ft3_asset_reward_info>, goals: list<goal_info>)
Link copied to clipboard
function get_quests_dto(quests: list<quest>): list<quest_info>
Link copied to clipboard
function is_quest_completed(player: player, quest: quest): boolean
Link copied to clipboard
function reward(quest: quest, player: player)
Link copied to clipboard
function update_quest(quest: quest, new_provider_id: text, new_required_quests: list<text>, new_original_rewards: list<original_asset_reward_info>, new_ft3_rewards: list<ft3_asset_reward_info>, new_goals: list<goal_info>)

Queries

Link copied to clipboard
@mount("quests.get_all_quests") query get_all_quests(): list<text>
Link copied to clipboard
@mount("quests.get_all_quests_dto") query get_all_quests_dto(): list<quest_info>
Link copied to clipboard
@mount("quests.get_player_quest_journal") query get_player_quest_journal(account_id: byte_array): (completed: list<text>, inprogress: list<(quest_id: text, completed_index: integer)>)
Link copied to clipboard
@mount("quests.get_provider_quests") query get_provider_quests(provider_id: text): list<quest>
Link copied to clipboard
@mount("quests.get_quest_configs") query get_quest_configs(): (enabled: boolean,)

Operations

Link copied to clipboard
@mount("quests.add_quest_goal_asset") operation add_quest_goal_asset(quest_id: text, goal_index: integer, asset_name: text, asset_type: text, original_interface: text?, amount: integer, should_consume: boolean)
Link copied to clipboard
@mount("quests.add_quest_reward") operation add_quest_reward(quest_id: text, asset_name: text, asset_type: text, original_interface: text?, amount: integer)
Link copied to clipboard
@mount("quests.add_required_pre_quest") operation add_required_pre_quest(quest_id: text, required_pre_quest_id: text)
Link copied to clipboard
@mount("quests.create_or_update_quest") operation create_or_update_quest(name: text, quest_id: text, provider_id: text, required_quests: list<text>, original_rewards: list<original_asset_reward_info>, ft3_rewards: list<ft3_asset_reward_info>, goals: list<goal_info>)
Link copied to clipboard
@mount("quests.delete_quest") operation delete_quest(quest_id: text)
Link copied to clipboard
@mount("quests.delete_quest_goal_asset") operation delete_quest_goal_asset(quest_id: text, goal_index: integer, asset_name: text, asset_type: text)
Link copied to clipboard
@mount("quests.delete_quest_reward") operation delete_quest_reward(quest_id: text, reward_name: text, reward_asset_type: text)
Link copied to clipboard
@mount("quests.delete_required_pre_quest") operation delete_required_pre_quest(quest_id: text, required_pre_quest_id: text)
Link copied to clipboard
@mount("quests.player_complete_goal") operation player_complete_goal(quest_id: text, goal_index: integer, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("quests.register_quest") operation register_quest(name: text, quest_id: text, provider_id: text, required_quests: list<text>, original_rewards: list<original_asset_reward_info>, ft3_rewards: list<ft3_asset_reward_info>, goals: list<goal_info>)
Link copied to clipboard
@mount("quests.set_global_quest_parameters") operation set_global_quest_parameters(enabled: boolean)
Link copied to clipboard
@mount("quests.update_quest_goal_asset") operation update_quest_goal_asset(quest_id: text, goal_index: integer, asset_name: text, asset_type: text, new_amount: integer, new_should_consume: boolean)
Link copied to clipboard
@mount("quests.update_quest_reward") operation update_quest_reward(quest_id: text, reward_name: text, reward_asset_type: text, new_amount: integer)